package modles

import "gorm.io/gorm"

type ProblemCategory struct {
	gorm.Model
	ProblemId  uint      `gorm:"column:problem_id" json:"problem_id"`
	CategoryId uint      `gorm:"column:category_id" json:"category_id"`
	Category   *Category `gorm:"foreignKey:id;references:category_id"`
}

func (table ProblemCategory) TableName() string {
	return "problem_category"
}
